package com.shj.em.biz.hr.entity;

import com.baomidou.mybatisplus.annotations.*;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shj.em.base.entity.BaseEntity;



import com.baomidou.mybatisplus.annotations.Version;

import com.shj.em.util.StringUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Transient;

/**
 * <p>
 * 员工信息
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-07-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_emp")
public class Emp extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String userId;

    /**
     * 姓名
     */
    private String empName;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 性别
     */
    private String sex;

    private String idCardNo;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date leaveDt;

    private String sheBao;

    /**
     * 出身日期
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date birth;

    private String picId;

    /**
     * 现居住地
     */
    private String liveAddress;

    /**
     * 爱好
     */
    private String hobby;

    /**
     * 省份
     */
    private String province;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 所在地区
     */
    private String district;

    @TableField(exist = false)
    private String sexDesc;

    @TableField(exist = false)
    private Long deptId;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date changeDt; // 进入部门日期，也是改换部门的日期

}
